<div class="sysWebsites index">
	<h1><?php echo __('分站管理');?></h1>
    <div class="bloc">
        <div class="title">
           <?php echo $this->element('admin/bread')?>
             <p><?php echo $this->Html->link(__('添加'), array('action' => 'add')); ?></p>
        </div>
        <div class="admin_view_table">
			<table cellpadding="0" cellspacing="0">
			 <thead>
			<tr>
					<th><?php echo $this->Paginator->sort('id'); ?></th>
					<th><?php echo $this->Paginator->sort('sys_city_id'); ?></th>
					<th><?php echo $this->Paginator->sort('sys_area_id'); ?></th>
					<th><?php echo $this->Paginator->sort('sign'); ?></th>
					<th><?php echo $this->Paginator->sort('title'); ?></th>
					<th><?php echo $this->Paginator->sort('theme'); ?></th>
					<th><?php echo $this->Paginator->sort('sort'); ?></th>
					<th><?php echo $this->Paginator->sort('enable'); ?></th>
					<th><?php echo $this->Paginator->sort('created'); ?></th>
					<th class="actions"><?php echo __('Actions'); ?></th>
			</tr>
			 </thead>
			  <tbody>
			<?php foreach ($sysWebsites as $sysWebsite): ?>
			<tr>
				<td><?php echo h($sysWebsite['SysWebsite']['id']); ?>&nbsp;</td>
				<td>
					<?php echo $sysWebsite['SysCity']['name'] ?>
				</td>
				<td>
					<?php echo $sysWebsite['SysArea']['name']; ?>
				</td>
				<td><?php echo h($sysWebsite['SysWebsite']['sign']); ?>&nbsp;</td>
				<td><?php echo h($sysWebsite['SysWebsite']['title']); ?>&nbsp;</td>
				<td><?php echo h($sysWebsite['SysWebsite']['theme']); ?>&nbsp;</td>
				<td><?php echo h($sysWebsite['SysWebsite']['sort']); ?>&nbsp;</td>
				<td><?php echo h($sysWebsite['SysWebsite']['enable']); ?>&nbsp;</td>
				<td><?php echo h($sysWebsite['SysWebsite']['created']); ?>&nbsp;</td>
				<td class="actions">
					<?php //echo $this->Html->link(__('View'), array('action' => 'view', $sysWebsite['SysWebsite']['id'])); ?>
					<?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $sysWebsite['SysWebsite']['id'])); ?>
					<?php echo $this->Html->link(__('轮播图'), array('controller'=>'SysSiteGalleries','action' => 'index', $sysWebsite['SysWebsite']['id'])); ?>
				</td>
			</tr>
		<?php endforeach; ?>
			 </tbody>
			</table>
		</div>
        <div class="pv_page">
            <div>
                <?php
                    echo $this->Paginator->counter(array(
                        'format' => __(' 当前第{:page}页/共{:pages}页 , 当前显示{:start} 至 {:end}条记录')
                    ));
                ?>	
            </div>
            <div class="paging">
                <?php
                    echo $this->Paginator->prev('< ' . __('上一页'), array(), null, array('class' => 'prev disabled'));
                    echo $this->Paginator->numbers(array('separator' => ''));
                    echo $this->Paginator->next(__('下一页') . ' >', array(), null, array('class' => 'next disabled'));
                ?>
            </div>
        </div>
    </div>
</div>
<style>.admin_view_table table tbody tr td.actions a{width:auto}</style>